package com.lmk.t03;

public class MathTest {


    public static void main(String[] args) {
        //浮点数取整
        //1. 向上取整
        double  d=3.14;
        System.out.println(Math.ceil(d));
        //2.向下取整
        System.out.println(Math.floor(d));
        //3.四舍五入
        double dd=Math.round(d);
        System.out.println(dd);

    }
}
